package com.sqx.modules.taking.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sqx.modules.orders.entity.Orders;
import com.sqx.modules.oss.cloud.QcloudCloudStorageService;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class OrderTaking implements Serializable {
    @ApiModelProperty("接单id")
    @TableId(type = IdType.AUTO, value = "id")
    private Long id;
    @ApiModelProperty("游戏id类型")
    @TableField("game_id")
    private String gameId;
    private String twoGame;
    @TableField(exist = false)
    private Game game;
    @ApiModelProperty("我的段位")
    @TableField("my_level")
    private String myLevel;
    @ApiModelProperty("接单段位")
    @TableField("order_level")
    private String orderLevel;
    @ApiModelProperty("接单时间")
    @TableField("order_taking_time")
    private String orderTakingTime;
    @ApiModelProperty("接单大区")
    @TableField("order_taking_area")
    private String orderTakingArea;
    @ApiModelProperty("价格")
    @TableField("old_money")
    private BigDecimal oldMoney;
    @ApiModelProperty("价格")
    @TableField("money")
    private BigDecimal money;
    @ApiModelProperty("会员价格")
    @TableField("member_money")
    private BigDecimal memberMoney;
    @ApiModelProperty("语音介绍")
    @TableField("voice_introduce")
    private String voiceIntroduce;
    @ApiModelProperty("主页图片")
    @TableField("homepage_img")
    private String homepageImg;
    @ApiModelProperty("详情图")
    @TableField("details_img")
    private String detailsImg;
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private String createTime;
    @ApiModelProperty("接单状态0进行中1待审核2已取消")
    @TableField("status")
    private int status;
    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private String updateTime;
    @ApiModelProperty("是否是推荐接单0是1不是")
    @TableField("is_recommend")
    private String isRecommend;
    @ApiModelProperty("发布人")
    @TableField("user_id")
    private Long userId;
    @ApiModelProperty("城市")
    private String city;
    @ApiModelProperty("人数")
    private Integer count;
    @ApiModelProperty("评分")
    @TableField("order_score")
    private Double orderScore;
    @ApiModelProperty("精度")
    private String longitude;
    @ApiModelProperty("维度")
    private String latitude;
    @TableField(exist = false)
    private List<Orders> orders = new ArrayList<>();
    @ApiModelProperty("假删除")
    private Long isdelete;
    private String content;
    private Integer sec;
    private Integer classify;
    private String unit;
    private Integer salesNum;
    private Integer authentication;
    private Integer minNum;
    private String region;
    private String detailadd;
    @TableField(exist = false)
    private String distance;

    @TableField(exist = false)
    private String shopName;
    private String serviceMethod;
    private Integer regionalRestriction;
    private String restrictedArea;
    private String altImage;
    private String video;
    private Integer sort;
}
